/**
 * Free software.
 */

package org.nanhill.moo.domain.search.favor;

import org.nanhill.commons.pattern.search.AbstractSearchCriterion;
import org.nanhill.commons.pattern.search.SearchException;
import org.nanhill.commons.pattern.search.SearchVisitor;

/**
 * @author alin [xalinx at gmail dot com]
 * @date 2006-11-5
 */
public abstract class FavorCriterion extends AbstractSearchCriterion {

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.nanhill.commons.pattern.search.SearchCriterion#accept(org.nanhill.commons.pattern.search.SearchVisitor)
	 */
	public void accept(SearchVisitor visitor) throws SearchException {
		accept((FavorVisitor) visitor);
	}

	protected abstract void accept(FavorVisitor visitor)
			throws SearchException;
}
